{extend name='common/common_layout'/}
{block name='source'}
    <link rel="stylesheet" href="__HOME__/css/sd.css">
    <meta name="keywords" content="{$kw}">
    <meta name="description" content="{$desc}">
{/block}
{block name='title'}
    供求详情
{/block}
{block name='center'}
<div style="width:99%">
    <div class="sd-title">
        <a href="/sd.html">
            <span id="supply-title">供货信息</span>
        </a>
        <a href="/sd/demand.html">
            <span id="demand-title">求购信息</span>
        </a>
    </div>
    <div style="border: 1px solid #F2F2F2;border-top: 2px solid #61B736;width: 100%;">
        <div class="sd-tabs">
            {if $type == "supply" }
            <a href="/sd.html">
                <span id="rec">推荐</span>
            </a>
            <a href="/sd/supplylast.html">
                <span id="last">最新</span>
            </a>
            <a href="/sd/supplylow.html">
                <span id="low">价格最低</span>
            </a>
            <a href="/sd/supplyhigh.html">
                <span id="high">价格最高</span>
            </a>
            {elseif $type == "demand" /}
            <a href="/sd/demand.html">
                <span id="rec">推荐</span>
            </a>
            <a href="/sd/demandlast.html">
                <span id="last">最新</span>
            </a>
            <a href="/sd/demandlow.html">
                <span id="low">价格最低</span>
            </a>
            <a href="/sd/demandhigh.html">
                <span id="high">价格最高</span>
            </a>
            {else /}
            <a href="/sd.html">
                <span id="rec">推荐</span>
            </a>
            <a href="/sd/supplylast.html">
                <span id="last">最新</span>
            </a>
            <a href="/sd/supplylow.html">
                <span id="low">价格最低</span>
            </a>
            <a href="/sd/supplyhigh.html">
                <span id="high">价格最高</span>
            </a>
            {/if}
            
        </div>
        <div class="sd-content">
            {foreach $list as $key => $item}
            <div class="sd-content-item">
                {if $item['thumb'] != '' & $type == "supply"}
                    <div class="item-img">
                        <img src="{$item.thumb}" alt="{$item.name}{$item.title}">
                    </div>
                {/if}
                <div class="item-title">
                    <span class="title">{$item.name}{$item.title}</span>
                    <div class="tag">
                        <span class="tag-type">{$item.type}</span>
                        <span class="tag-date">{$item.update_time}</span>
                    </div>
                </div>
                <div class="item-desc">
                    <span class="size">
                        {$item.size}
                    </span>
                    <span class="origin">
                        {$item.origin}
                    </span>
                </div>
                <div class="item-price">
                    {if $item['price'] == 0}
                    <p class="num">电议</p>
                    {else}
                    <p class="num">{$item.price}</p>
                        {if $type == 'demand'}
                        <span class="unit">元/吨</span>
                        {else}
                        <span class="unit">元/{$item.unit}</span>
                        {/if}
                    {/if}
                </div>
                <button class="item-btn" type="button">
                    <a href="/?{$item['hash_str'].$item['hash']}">
                        <span>查看详情</span>
                    </a>
                </button>
            </div>
            {/foreach}

        </div>
    </div>

</div>
<div class="split-page">
    {$page|raw}
</div>
<script src="__HOME__/js/sd.js"></script>
{/block}
{block name='right'}
    {include file='common/common_last_news'/}
{/block}